package com.nulstudio.cloud.account.mapper;

import com.nulstudio.cloud.account.domain.vo.PersonalInformationVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;
import org.springframework.lang.Nullable;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface PersonalInformationMapper {
    @Nullable
    PersonalInformationVo selectPersonalInformationById(@Param("id") int id);

    int updatePersonalInformationById(@Param("id") int id, @Param("name") @NonNull String name, @Param("gender") int gender);

    int updatePasswordById(@Param("id") int id, @Param("password") @NonNull String password);
}
